#ifndef WALBUM_H
#define WALBUM_H

#include "../../../model/malbum.h"
#include "../../../core/dtalbum.h"

#include "wtable.h"

class WAlbum : public WTable
{
    Q_OBJECT
    
public:
    explicit WAlbum(QWidget *parent = 0);
    ~WAlbum();
    void setList(QList<AbstractData *> &lAlbum);
    QString getPath();
signals:
    void playAlbum(QList<DtTrack *> &);
    void addAlbum(QList<DtTrack *> &);
private:
    MAlbum model;
    QString selection;
private slots:
    void on_tableView_clicked(const QModelIndex &index);
    void on_tableView_doubleClicked(const QModelIndex &index);
};

#endif // WALBUM_H
